package casa.depesos.app.com.http.req;

import casa.depesos.app.com.http.HttpReq;
import casa.depesos.app.com.http.Req;
import casa.depesos.app.com.http.ReqCallback;
import casa.depesos.app.com.http.bean.GetCodeBean;
import casa.depesos.app.com.http.parser.GetCodeParser;
import okhttp3.FormBody;

public class DelBankCardReq implements HttpReq<GetCodeBean> {
    String id;

    public DelBankCardReq(String id) {
        this.id = id;
    }

    @Override
    public void req(ReqCallback<GetCodeBean> callback) {//  /app/bindCard/delCard
        FormBody.Builder builder = new FormBody.Builder();
        builder.add("crdef", id);
        Req.post("/app/cardBinding/removeCard", getParam(), getHeader(), builder.build(), new GetCodeParser(), callback, this);
    }
}
